package com.coderdream.chapter17.observer.a2;

public class Main {

	/**
	 * @param args
	 */
	public static void main(String[] args) {
		NumberGenerator generator = new IncrementalNumberGenerator(10, 50, 5);
		Observer observer1 = new DigitObserver();
		Observer observer2 = new GraphObserver();
		Observer observer3 = new SquareObserver();
		Observer observer4 = new SquarObserver();
		generator.addObserver(observer1);
		generator.addObserver(observer2);
		generator.addObserver(observer3);
		generator.addObserver(observer4);
		generator.execute();
	}

}
